<%@page import="fr.greta.centreFormation.bean.Info"%>
<%@page import="org.apache.tomcat.util.buf.UEncoder"%>
<%@page import="java.rmi.UnexpectedException"%>
<%@page import="fr.greta.centreFormation.bean.Domaine"%>
<%@page import="fr.greta.centreFormation.bean.UniteEnseignement"%>
<%@page import="fr.greta.centreFormation.bean.Cursus"%>
<%@ page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<jsp:useBean id="lesInfos" class="java.util.ArrayList" scope="session"></jsp:useBean>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" media="screen" type="text/css"
	href="css/generalStyle.css">
<link rel="stylesheet" media="screen" type="text/css"
	href="css/adminStyle.css">
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<title>Insert title here</title>
</head>
<body>
	<div class="aur-content">
		<div class="row">
			<jsp:include page="navAdmin.jsp"></jsp:include>
				<div class="hero-unit">
					<h1>Les Infos</h1>
					<a class="btn btn-primary aur-button-tittle" href="AjouterInfos">Ajouter
						une infos</a>
				</div>
				<table class="table table-striped">
					<tr>
						<th>id</th>
						<th>Date</th>
						<th>Titre</th>
						<th>Contenu</th>
						<th>Action</th>
					</tr>

					<%
						for (Info uneinfo : (ArrayList<Info>) lesInfos) {
							out.println("<tr>");
							out.println("<td class='idTable' >" + uneinfo.getIdInfo()
									+ "</td>");
							out.println("<td class='intitulTable' >"
									+ uneinfo.getDateInfo() + "</td>");
							out.println("<td class='descriptionTable'>"
									+ uneinfo.getIntituleInfo() + "</td>");
							out.println("<td class='codeRomeTable'>"
									+ uneinfo.getContenuInfo() + "</td>");

							out.println("<td>");
							out.println("<a class='btn' href='ModifierInfo?info="
									+ uneinfo.getIdInfo() + "'>Modifier</a>");
							out.println("</td>");
							out.println("</tr>");
						}
					%>
				</table>
			</div>
			<jsp:include page="footer.html"></jsp:include>
		</div>

</body>
</html>